<div class="winningplaces form">
	<script>
    $(function() {
        $( ".datepicker" ).datepicker({ dateFormat: "yy-mm-dd" });
    });
    </script>
<h2>Добавление записи</h2>
<h5>Тип добавляемой записи <?php echo $recordtypes[$recordtype_id]; ?></h5>
<?php echo $this->Form->create('Winningplace'); ?>
	<fieldset>
		<legend><?php echo __('Add Winningplace'); ?></legend>
				<?php 
			echo $this->form->hidden('recordtype_id', array('value' => $recordtype_id));
		?>
<table width="100%" class="invisibletable">
  <tr>
    <td align="right">Тип мероприятия</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('competitiontype_id', array('label' => '', 'empty' => 'Выберите тип мероприятия')); ?></td>
  </tr>
  <tr>
    <td align="right">Статус мероприятия</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('competitionstatustype_id', array('label' => '', 'empty' => 'Выберите статус мероприятия')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Название мероприятия</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('competition_name', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Призовое место</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('winningplace', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td align="right">Дата получения призового места</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('date', array('label' =>'', 'class' => 'datepicker', 'type'=>'text', 'size' => 10)); ?></td>
  </tr>
</table>
	<?php 
		echo $this->Form->hidden('recstatus_id', array('value' => '1'));
	?>
	</fieldset>
	<br />
<?php echo $this->Form->end(__('Submit')); ?>	
</div>
